module.exports = {
  apps: [{
    name: 'node_tax_bi_server',
    script: '/home/node/tax_portal_web/node_tax_bi_server/bin/www',
    cwd: '/home/node/tax_portal_web/node_tax_bi_server',
    log_date_format: "YYYY-MM-DD HH:mm Z",
    log_type: 'json',
    output: '/dev/null',
    watch: ['routes', 'app.js'],
    ignore_watch: ['node_modules', 'logs', 'public/tmp'],
    watch_delay: 1000,
    instances: 4,
    exec_mode: 'cluster',
    autorestart: true,
    restart_delay: 1000,
    max_memory_restart: '4G',
    env_local: {
      NODE_ENV: 'local'
    },
    env_dev: {
      NODE_ENV: 'dev'
    },
    env_uat: {
      NODE_ENV: 'uat'
    },
    env_demo: {
      NODE_ENV: 'demo'
    },
    env_prod: {
      NODE_ENV: 'prod'
    }
  }]
};
